Add a validating storage proxy, to check ids before insertion.
It can be used to prevent buggy or malicious clients of the storage from adding invalid objects.
On the other hand, it will be computationally expensive, especially for contents. What do you think?
Migrated from D3844 (view on Phabricator)