Performance issue with In-Memory BDB