Use states instead of hashes

Description

To completely avoid hash collisions, don't use hashes.

Environment

None

Assignee

Philipp Koerner

Reporter

Philipp Koerner