Fixed encoding, with a hashcode like approach