Moved the template file cache into a class varible for better unit testing.
Moved the template file cache into a class varible for better unit testing.

brainworxx/kreXX,brainworxx/kreXX,brainworxx/kreXX,brainworxx/kreXX