Performance: Leverage jinja2's Environment to cache compiled Templates. (fixed merge)