Small optimization for mapdb