Calculating hashcode on-demand.