Block equals and hashCode implemented to not rely on the slow hash