As the question is about granting access to accounts after death, it seems an odd worry. The government is also likely to get access to your data from your Google, Facebook, etc. If you have a server in the cloud, they can probably go to your hosting provider to get physical access.
So unless you have data in secret offshore servers in countries that won't cooperate with the US government, then a safe is not your weakest link.