Also, please keep in mind that bail is not punishment, it's just means of ensuring that the defendant will attend their trial. That's why it's refundable at the trial's end. Good bail should be low enough that defendant can afford to pay it, but not afford to lose it.