cache compiled templates statically