Improve batch updates for in-memory controller.