How to automatically set the path to a remote-user's local cached file

I suspect I’ve answered your question in another topic: