There isn't a good route to send such repeat-low-level offenders, which is part of why they get caught-and-released.
There should be, it just seems a little short-sighted to blame the judge versus the entire correctional and judicial system that forces them to make a least-bad choice.