Depending on the offense, that’s often more humiliating than painful; and it’s short-lived misery.
I think these ones need jail.
For a very long time and then a mental hospital.