Thumbnails are cached in tmp folder but can be outdates or not available. When this is the case the thumbnails are extracted from the blend file.
Currently the logic is as follow
```
for each thumbnail to load:
open file
read all names of the same category
read all preview images of the same category
find the preview image that was needed as it is assumed that the name list and preview list are in the same order!
discard the rest of the preview images (that will probably be reread in the following loop)...
```
Related functions:
* `IMB_thumb_load_blend`
* `BLO_blendhandle_get_previews`
Other improvements are:
* [] store preview images closer to the bhead.
* [] stop looking when a preview image was found for the specific ID block. {D12312}
* [] add an preview index at the end of the blend file that can act as a hashmap between IDname and preview index. So we don't need to go over the whole file.