Implement runtime optimisation via Hashing of transitions.