Speeding up TimeRecords.index