There is an immediate solution.

Judges have many options for how bail is set except they rarely utilize them.  For example, poor defendants can be released to the custody of friends and family. These alternative forms of bail that are routinely used in other jurisdictions, but almost never in New York.