added a significant optimization to both remote and compiled templates