Optimized stop refresh logic