Only preallocate the entire log file if we're not on the critical path.