(pouchdb/pouchdb#2818) - read keys into memory