Use a smarter way to cache

Avoid wrapping the compiled template in a lambda expression - instead use a normal freakin' method.