with the cache getting invalidated when messages were attached/detached from threads, and since I wasn't 100% sure about tokyocabinet with a non-UBC system this seems the best approach. We also tried gdbm (g not q), which was slightly faster for me (but not much in it) but seems much slower for tb@.