Groovy 2.3.1 has a new template loader abstraction that handles compiler caching (better performance by factor of 10).