The testicles are located outside the main body cavity for a reason. Sperm production works best at a temperature slightly below core body temperature.