update processBatch to stop earlier and skip unnecessary checks