Use dispatch_once for template