I don't understand why this is needed. The files are already named after the executable, and anyone who can change the file name can also change the contents of the file, so this wouldn't really solve anything.
Isn't it much harder to change the contents of the binary file?
Not really, hex editors exist.
It's certainly doable but I don't really see the point; it doesn't provide any real security and while merging caches from different apps obviosuly bloats the file, it doesn't have any other side effects since entries from other games won't ever be used (unless they are built on the same engine and have some shaders in common, in which case some of the new entries might even be useful).
Another problem is that obviously this would have to be implemented in a future DXVK release and older DXVK versions wouldn't be able to read the cache files, as is the case with any version bump.
Nothing extracted yet.
If cache is opened in a text editor it only has "DXVK" in a standard text, I think it would be great if it also included name of the process, something like DXVK-processname.
Why?
Currently there's no way to verify if a cache is for x process, name of the file is easy to change, it's somewhat possible with entries (merge a trusted cache with a random one, all entries merged=not for this process) but not really.
If cache was used for more processes they would all appear in it in a standard text.
This would come in handy while exchanging caches.