Made Vendor.most_revenue(n) method much faster