The extension does not keep the files on disk opened like file_text functions do - rather, it grabs the content into a buffer, builds up a data structure representation of it, and converts back into a buffer and overwrites the file when saving.
You might be able to achieve a similar result for file_text functions by passing the string from a buffer into file_text_open_from_string, although I'm not sure where the limit is checked for.