split the shard terms into 256 groups by first byte