Rehabilitation should obviously be another goal, but for violent crimes I don't think there's a good way to predict recidivism that couldn't be gamed. If someone could theoretically be rehabilitated in a year for mass murder, should they be released? I don't think so, because that would drastically reduce the deterrence against murder.
And by removjg diets you are disproportionately punishing some people. A Muslim given the same sentence as someone with no religion will suffer more as a result of imprisonment purely because of the lack of dietary choice.
"Prison should suck" is a horrible sentiment, and runs contrary to the UDHR. I understand that American hasn't ratified that, but that's not because they disagree with it.
To that end, I've been there. You think I'd come out and go "gosh golly, that was sure an effective means of handling my situation?"
That is not a society I want to live in. Prison should protect the remaining population and rehabilitate, punishment should be a consequence of the means necessary to do so. Prioritizing in that order (protect -> rehabilitate). In my opinion anyways..