Wait for all inserts by redirecting only when statement is finalized.