Since batch mode became the default all uploads go through uploadChunked, which allocated a full chunk-size retry buffer (48 MiB by default) regardless of the file size. With the `--transfers 32` recommended for small file uploads that is ~1.5 GiB of buffer to upload tiny files. Size the buffer to the file size when it is known and smaller than a chunk.