This is done in both executeQuery and run, I'd either remove this instance or it you think there will be big numbers of transfers move it into the end of the loop to execute after every 200th (or whatever) item.