Run the template resource in the service provider only once