protected function locate($key): ?KeyValueBucket
    {
        for ($this->rewind(); $this->valid(); $this->next()) {
            /** @var KeyValueBucket $current */
            $current = $this->current;
            if (Validate::areEqual($key, $current->key())) {
                return $current;
            }
        }

        return null;
    }