That's not the answer. First of all, the cost would be huge. Secondly, think how long the guy waits now - - HALF that time would still be unacceptably unjust.
The real solution is to deal with the problem the way that Canada (and probably a lot of other countries) deals with it - - you start with the premise that everyone is presumed innocent till proven guilty in court. So these guys are all innocent. Presumably. So it's an affront to a free society that people who are innocent are locked up. Where is freedom?
Now some of these "innocents" may present special problems - - if the charges are serious, with heavy penalties hanging over their head, they may elect not to show up at trial. If they have previously skipped bail, they may present a risk of not being trustworthy enough to show up at trial. If they have threatened witnesses, or people have reason to fear violence from them, they're a danger to the public. Etc.
For all of those things, the state must PROVE there is a good reason to keep these otherwise presumedly innocent people locked up. Or put on tighter bail.
Otherwise, in all other cases, these folks are free to walk the streets upon a mere promise to show up at trial. The harm of an innocent guy being locked up for nothing is balanced against the harm of a petty shoplifter skipping trial and not getting his or her just desserts. It's a no-brainer.