pre-computing hash codes and storing them in objects.