This is a missing commit from a previous PR
This improves loading performance (and uses less memory on ESP32 devices without PSRAM)