Smarter batch put/delete handling