Split record processing to avoid memory crash