Are you getting the data from the database and loading the ResultSet? If so, you can change how you load the data and batch the resultsets... but if the 3rd party API is creating the resultset......