Control memory usage better with cursor read
If we use cursors to read the large results, this could help the memory usage, as once we read a row we throw it away. If we don't use cursors then all the data from the results of the query seem to get loaded into memory before being returned (to write the results to google).