Also, we currently mix up decimal and binary units.

Either we use a decimal base (1000 bytes = 1 KB), or a binary base (1024 bytes = 1 KiB), but we don't mix both.
Since binary units are mostly used in scientific and opensource domains, I'd rather stick to the decimal notation: change 1024 to 1000, and keep the current units.