ConnectedComponent: Cache hash value upon construction