Fixed caching of function template settings