@matigo 20 GB was of unremovable cache files, the remaining 20 GB is what is saved by having lower resolution versions of the 28 GB iCloud Photo Library on board.
That is, the Photo Library on the Mac is shown as occupying 28 GB, but really tthat’s how big the iCloud library is. The local version with lower res pics is around 8 GB in reality.