In read_batch mode, we now let the code write out the index value