Calculate hashs before freezing literals.