Removed shared state in infer service.