Reuse compiled templates to speed up generation