I'm computer illiterate so I don't know if your script already does this, but you should have it make a list of files with the same filesizes, and THEN get the hash of those files.
For more speed hackery, just hash the first xxx bytes of the file, and if they match, hash the whole thing.
It's actually real photos of the actual product. You can even see slightly misaligned pins in the micro-usb end. It looks correct to me. The port has the 5 pins/pads at the end/tip, but the cables will have the 5 spring contacts all the way on the inside.
Photo from my potato attached.