I wish what you were saying is true, but unfortunately, it is not, at least from my experience as an attorney for a not-for-profit agency that contracts with the local court system and probation department to provide post-conviction mental health evaluation and therapy to pedophiles and other sexual deviants. From my first hand observations, the insanity defense is sometimes used, but rarely successful. Nevertheless, the use of the defense wastes prosecutorial resourses and the threat of the defense becomes a factor when plea bargaining some cases. In addition, despite the extremely high recidivism rate, "first-time offenders" (meaning no prior convictions) are often sentenced to probabtion or short jail sentences upon the condition that they stay away from children and attend group and individual mental health therapy provided by agencies such as the one that I represent.