Very dirty hack to improve hashing for sharding attributes.