public function clean()
    {
        $dba = $this->dba;
        $key = dba_firstkey($dba);

        while ($key !== false && $key !== null) {
            $this->retrieve($key);
            $key = dba_nextkey($dba);
        }

        return dba_optimize($dba);
    }