Optimize partitioner tokens

Patch by blambov, reviewed by jmckenzie for CASSANDRA-8230