Well, you’re completely missing the point of the comment you were originally replying to, so this is really another topic entirely. I don’t have all the answers, but there are other countries who seem to have it closer to figured out than we do, so we could start by taking notes from them. Acting like this is an unsolvable problem isn’t helping anything.
What was the point of your comment then? I’m sorry I missed it.
Tangentially then, I’d suggest to you that while it is useful to adopt more therapeutic models of inmate care through a rehabilitation focused correctional centre, ultimately the effort required to change behaviour at the point of incarceration is inordinate. (Take a read: https://www.annualreviews.org/content/journals/10.1146/annurev.lawsocsci.3.081806.112833)
Crime (and violence) is and remains a social problem and directing funding and effort near the end of a criminal episode (at the point of incarceration) is not as effective as providing a decent social safety net that provides for a stable household and gives children a chance denied to their parents. (Old paper but gives you an idea as to the complexity and unreliability of solving this: https://www.ojp.gov/pdffiles/171676.pdf)
If I have given the impression that I think this is unsolvable I apologise, that’s not at all my position.