Use .iterator() where we can to avoid memory issues with large data sets