Clearing Template::vars makes the code faster

Improvement seen by 20ms