1. A computer readable media having instructions stored thereon that, when executed by a processor, causes the processor to: execute a query to a database system to determine all data items that are accessible based on at least a current privilege; receive results of the query that include all authorized data items of the current privilege; store each authorized data item in association with a privilege set containing the current privilege; execute a query to the database system to determine all related privileges of the current privilege, wherein a related privilege is a privilege that belongs to the same set of aggregate privileges as the current privilege; and store all related privileges of the current privilege in the privilege set of each authorized data item.