modified : using of new Cache Class to hold Template data