Any way of returning enum_items faster for thumbnails?

I’m working on a library with textures and a category menu, everything works perfect, but the thumbnails take forever to load. I’m also using a return function for the category menu which reloads the thumbnail to the selected category, also takes long to load images. Any way of speeding up return of enum_items? or what else would be the solution