improved page optimizer performance for apptimizer layer