Pre-calculate hash value for symbol