You can "freeze" micropython modules and have them saved in flash with Micropython, where flash only stores the precompiled bytecode.
If your module contains stored data in the form of an immutable object, like a string or bytes(), it will be read straight out of flash without copying to RAM first.
This needs you to run some code on a desktop computer to perform the freezing though.
https://docs.micropython.org/en/latest/reference/constrained...