Optimizes LMDB intialization; refactor and drops async

Optimizes a bunch of routines; drops async.