Neat, this looks a lot like the Linux-focused Profile Sync Daemon[1], which can move your profile to a RAM-backed tmpfs. PSD does more browsers, though. I wonder if PSD could work on macOS, too.
The reason I created this was because I missed the profile sync daemons commonly found in Linux. I haven’t looked into this specific one, but most available solutions are Linux-only.