diff --git a/waffleClient/proxy/src/waffle_proxy.cpp b/waffleClient/proxy/src/waffle_proxy.cpp index 7326aed17..f53edaa89 100644 --- a/waffleClient/proxy/src/waffle_proxy.cpp +++ b/waffleClient/proxy/src/waffle_proxy.cpp @@ -198,7 +198,8 @@ void waffle_proxy::execute_batch(const std::vector &operations, std:: cache.insertIntoCache(keyAboutToGoToCache, valueAboutToGoToCache); } else { // Writing fake key values to DB - writeBatchKeys.push_back(storage_keys[i]); + auto fakeWriteKey = extractKey(enc_engine->decrypt(storage_keys[i])); + writeBatchKeys.push_back(enc_engine->encrypt(fakeWriteKey + "#" + to_string(realBst.getFrequency(fakeWriteKey)))); writeBatchValues.push_back(enc_engine->encrypt("fakeValue")); }