Optimize auto refresh