I see. I wanted to test your flash functions and obviously I constructed the worst example code one could make . OK will try to make a better example with real code instead of dummy strings.
But tell me: The functuions are stored in flash (as files) and, if I got you right, only if they get called are loaded into RAM or are they executed directly from flash (so no execution time heap usage)? If first applies then, as you said, I guess its a good idea to set the functions after call to nil again and collectgarbage()?