New versions of Berkeley DB (I tested with 4.5.20) seem to