From my perspective, there are a lot of points in your post!
First, in my understanding, you are a different type of moral thinker than myself. Perhaps you follow proportionalism? A method of weighing the various goods in a situation? If so, we follow different systems.
Second, you propose that the prison system violates the ends/means law. I’ve got to think about that, never having really thought about it.
Third, you propose a situation in which torture is not justified for the particular goals to be achieved. Would you accept torture of a person who could singlehandedly save the lives of 100 people by telling you where a poison antidote is?
Fourth, I agree, so far as I know, a person can recover from a period of sleep deprivation. The long term damage is less than with other methods. I still see it as harming a person in the short term. Making it so a person can’t think straight is not good for the person. However, I can’t tell if you are saying that you can hurt the person this small amount if they are a *bad *enough person or if they are *dangerous *enough. (violent guy v. traffic violator).
I do see long term damage in making a person say something that they would never have said unless you forced them. I think the experience could linger with someone forever. I also think the indignity of the experience could linger. But this could be said of pulling nails as well.