Hash attribute type by the number of trailing zeros instead of casting long to int