Resource cache

Caching ejs resources in javascript heap.