Different hash serializer which caches hash codes. First rough draft.