Use hash_transform instead of one to one assigning.