working lmdb, using our cache thingy