Worth saving the hashCodes rather than recomputing? it might be non-trivial