Revert "Revert "swap out DB_BTREE for DB_HASH since it performs better""

This reverts commit 2e4a00436d05f7b248df61a0abdf8a1d1e210cbc.