Optimized template usage