Massive data optimization