I suggest to use the constructor without buffer size. Typically the default buffer size is choosen by the Java developers at Oracle/Google in such a way that it is a multiple of the sector size of current file system with a high probability. With self defined buffer sizes chances are higher that the number of sectors to be written is higher.