I don't know, I wonder if something like public caning might be a more humane and more effective option than sentencing people to anal rape. (Which is de facto what often happens in the US).
Anal rape is not a defacto thing in US jails or prisons. Is it an epidemic? Almost certainly since the justice department has turned a blind eye to it and LEOs use the threat of it to coerce confessions in a few cases. But actual rape amongst nonviolent convicts is not higher (2-2.5%, according to Wikipedia [1]). You're more likely to be sexually assaulted, in general, just by being a woman.
You do raise an interesting point. I think calling jail time what you called it is a bit extreme but yeah, lots and lots of people do get thrown in jail here.
I don't have a good answer as to what I would consider "just punishment" by the state for things like robbery, etc. However, throwing someone in jail for littering is certainly extreme.