Improve I/O performance on Windows (especially network drives).
Reported by Marek Pavlik.