persistPayloadFromServer

Encodes a server payload, then replaces its stored copy and propagates any storage error.