optimize CassandraBackedStats.