combine delete and insert into one stream as order is important, CPU-268
add some validation before data is actually sent