I'm not aware of anything with better performance than BerkeleyDB. However, getting it right is not easy, as you say. If you can sacrifice a bit of speed for something simpler, DBI to a MySQL server running on localhost is nearly as fast and somewhat easier to understand.