Thumbnail Image Path Many Directories

I ma trying to get some image paths for the admin order thumbnail.

When going through the images folder there are thousands of directories,

does it have to be this way, it takes an age filtering thru them


SOme of them have really strange directory names as 50/30/1000.111

The theory is that it is easier searching through a directory that has a thousand files versus one directory with millions of files.

Everything is correct
0, 1, 2 folders depends on the MAX_FILES_IN_DIR setting in the config.local.php. You can specify the maximum number of files, stored in directory.
As for thumbnails, the structure is the following: