Caching the hashcodes of certain classes because DnsEndPoint's GetHashCode method seems excessively heavy.