Optimization for many devices