Implement get_time_records_iterator_for_name_and_level for memory efficiency