In theory, this is different tech than CSAM, which is supposed to checking hashes against a global database, vs determining the "nakedness" score of an arbitrary picture.
But, scan them once, scan them all, on your phone. The details start to matter less and less.
Also, since they already scanning all of the photos up on iCloud already, why would they need to have it put locally on the phone?
Finally, I know that Apple scans photos on my device, because that's how I get those "memories" of Furry Friends with vignettes of my cats. I don't even use iCloud. (To be clear, I love this feature. Send me movies of my cats once a week.)