Separate persistent and global metadata serialization settings
Blob store-based gateways shouldn't serialize transient metadata

Fixes #5615