Optimize updating of progress bars