I’ve only checked 3.3.8 as that’s the current v3 release, but it does indeed cache that in the CMS library when the thumbnail is generated the first time.
That’s the function.
That’s where it’s checking if the file already exists. You’d see those in the CMS library directory as files starting with tn_.