WIP: hacking a workaround over the strange LMDB bug