Optimization initialisation of hashcode() method