Using Google Drive as a cache drive

I don't have enough space on my local drive, so I want to use Google Drive both as a cache memory and as a final upload drive, since I have unlimited storage space on Google Drive

I found it:

But it talks about continuous copying of a file, I'm looking to first compress the file with 7z and then upload it

I saw that there is also a remote called compress, but it does not support adding a password

Do you know of a way I can still make this happen?