SortKey fix and better logging for extract_rec_in_mem