This may be a long shot.
Possibly integrate memgpt in some way to allow for unlimited memory?