Windows NTFS has an option to transparantly compress files and directories.
This is missing in MacOs, but you can compress files that are mostly read only with HFS compression (also works on APFS).
There is a nice tool in brew so you can compress a single file on the command line.
brew install afsctool
afsctool -cv <FILE>