1. A method for efficiently performing operations on distinct data values by one or more computing devices, the method comprising: storing, by at least one of the one or more computing devices, a tokenized column of data in a table, the tokenized column of data created by mapping each unique data value in a domain of a database to an entity ID, and replacing each of a plurality of data values in a column of data corresponding to the domain with the corresponding entity ID to generate the column of tokenized data containing a plurality of entity IDs; receiving, by at least one of the one or more computing devices, a query directed to the column of data, the query defining one or more group sets for grouping data retrieved in response to the query, wherein each group set in the one or more group sets corresponds to a unique group of one or more values associated with one or more other domains of the database; and generating, by at least one of the one or more computing devices, an entity map vector for each group set in the one or more group sets by identifying any entity IDs in the tokenized column of data which are present in any rows of the table which include the unique group of one or more values corresponding to the group set, wherein the length of each entity map vector is equal to the total number of entity IDs in the domain and the value of each bit in each entity map vector indicates the presence or absence of a different entity ID in the corresponding group set.