LevelDB: size caps and env var overrides