Perform query cache operations only on connected shards