two batches with locks instead of the single one.