Optimalize compiled templates file