Adapt memory usage estimation for flushing