Changed logic in KeyValueStore for sendKeysCrashN