Since Defrag or Optimize Disk consolidates files to be accessed quicker, make sure to run the Disk Cleanup first so the optimization can be more efficient. In the case of HDDs, the head can access data faster, and in the case of SSDs, it will not make much difference, but the overall process will be faster.