Stub for a more efficient version (that will encode sequences in longs
that will be used as keys for the hashmap).