Optimal leads lenght in cryostats