Simplify lmdb usage