Use cached template loader, will speed-up template lookup on disk
Merge pull request #1039 from makinacorpus/1036_simple_optimizations

Simple optimizations