Check sizes before hashing.

This increases the speed by leaps and bounds.