Is it possible to develop an application in such a way that its data in memory cant be stolen by recent attacks such as Meltdown, Spectre, Foreshadow, Fallout. Zombieload? All mitigations focus on patching hardware, BIOS or OS. But could sensitive applications such as password managers also implement additional protection mechanisms?
For example, could KeePass keep the passwords out of L1 cache (always loading them directly from memory)? This might protect against attacks targeting L1 cache.
There are other vulnerabilities which leak other caches and registers so it might not be sufficient against all attacks. Any other ideas on how to minimize the caching of this sensitive data?
Also, I know keepass encrypts passwords in memory but are they also encrypted in L1 caches? And is the decryption key not also in these caches?