A sentence which results in institutionalisation should be judged as a crime committed by the State, and efforts should be made to bring institutionalisation rates to 0%, or the nearest possible.
I'm talking about prisons. Like, when people are in prisons for so long under certain conditions that they feel they can't "make it" on the outside. Like the Shawshank Redemption.
Some people, obviously, can't be rehabilitated.