[major] cleanup, production ready, template cache