If the client code is compromised, local vaults are just as subject to exfiltration as the end-to-end encrypted cloud vaults. I don’t see the difference in the threat models.