It is a good idea in theory, but implementing disk image compression on save has two major issues:
Compression takes time, which will make system shutdown very slow due to writing and compressing the image files.
It will break differential writing. At the moment the RAM Disk only writes blocks that changed since the image was last read. This saves a lot of disk I/O and is very fast. With compression that will not be possible.