Preserve local cache across materializing of hashes and arrays.