Only parse template once