Refactoring key index for cassandra cql.