Cache template parsing on app init