Flush to DB deferred until the end