Improved loading performance by not flushing every layer.