Are you actually proposing a life sentence for repeated misdemeanors or violations?
If it’s not a life sentence, jail time doesn’t improve mental health, doesn’t generally improve job prospects, and is more expensive than providing housing.
Incarceration costs upwards of $100,000 per year in California.