optimized grid scan