protected function gridFS(BucketInterface $bucket): Bucket
    {
        if (empty($this->database)) {
            $this->database = new Database(
                new Manager($this->options['connection']),
                $this->options['database']
            );
        }

        return $this->database->selectGridFSBucket([
            'bucketName' => $bucket->getOption('bucket')
        ]);
    }