why not serialize it in the first place as HashWithInDifferentAccess?