They should be scouring the county jails as well for illegals and pot-heads. Most states pay the counties to lock up people. Clear out the county jails of these buffoons and leave the violent career criminals and theives in the jails. Screw rehab. Unless someone wants to quit, they aren't going to. Most of them, in my limited experience, have no interest in quitting.
Getting rid of the illegals is a good first step.
There are other solutions to crime than jail. In the case of robbery or personal property issues, have the perp make restitution. The Old Testament had a rate of 4 times the value of the property, IIRC.
Having the criminal work to pay back the person he offended might just go a long way to making him realize what it’s like to be on the receiving end.
He also does not end up with a jail term on his record.