Cache compiled templates between requests