Make ShaderTemplate lazy