Yes I agree what you say about achieving such an ideal.
Prisons are very dangerous places and violence, drugs, and staffing levels are all relevant factors.
Far too many people are sent to prison who have MH issues together with others with serious health complications.
Whenever court cases are reported, there is always a tendency for readers to be puzzled by the sentences.
Without knowing the full facts, it appears that some people are harshly treated and others, who perhaps deserve longer sentences, are treated more leniently ?
Maybe , (without being overtly religious, ) if more people followed The Ten Commandments and weren't victims of the drug culture, prisons wouldn't be so overpopulated ?