Also, determine why this is happening, and whether it indicates there are excess empty blocks. Calling OutputStream.write is not a no-op for many OutputStream implementations.