depends on its size; if its not too huge just dump the whole thing as a binary blob. If its huge, you will want to store just what is active (key and data). Alternately you can store the data itself and rehash it on reading it back in, and ignore the hash table part entirely.