Increment buffer size very much to reduce HD seeking. In-depth explanation in the documentation which is added by this commit.
Write checkpoint to disk every 15 minutes. This protects against power failure and especially helps debugging script crashes on very large input.