Router optimization