Cache compiled templates