Caching for imported pages
Is your feature request related to a problem? Please describe.
Some imported PDF pages take a very long time to load, and they get instantly unloaded when scrolling. This loading process, can be a bit time-consuming when frequently switching between pages to look up information.
Describe the solution you'd like
This could be solved with having a cache that saves the loaded pages.
Describe alternatives you've considered
Another solution could be speeding up the loading process itself, but a cache seems like a simpler and more efficient solution to this specific issue.
The issue is more about ram/vram pressure. If it can be measured the unload/load part could be relaxed to occur based on being visible/invisible and whether or not there's room to keep things in memory. I think you don't have unloading when the visual debug option is enabled (so the perf impact of the unload/load part is visible in that case)