Temporary cache the template for alerts.