A bug with the underlying dbm used by Shelve caused random crashes. To circumvent the bug, usage of shelve is discarded and persistence is achieved through files.