In November 2022, the password manager service LastPass disclosed a breach in which hackers stole password vaults containing both encrypted and plaintext data for more than 25 million users. Since then, a steady trickle of six-figure cryptocurrency heists targeting security-conscious people throughout the tech industry has led some security experts to conclude that crooks likely have succeeded at cracking open some of the stolen LastPass vaults.
You’d need to have different files for different subsets, then, and use some sort of cloud storage for sync
No need for cloud storage, just use a peer to peer data replication product like Syncthing. Fully encrypted, data is only stored on the end devices, entirely controlled by the user.