Optimizations for big datasets.