Always output memory limit
Reduce required memory estimate
Make write_cached_diff atomic