FoursquareConnector main method memory improvement