quick fix for rehashing: single hashCode for all memory states