DO NOT MERGE [2.2] small writes batch force optimization

Look into the `getAndSet` method.