Add optimal mode to IndexedRecordReader
Minor change