Rewrote the hash store serializer