optimize dbm access