Optimized template file