Added switch template cache