Implemented in-memory template cache