SHARK-145: Improve distinct aggregation performance and lower memory usage.