that’s an interesting workaround. This is usually just meant for files, but I suppose you could create local files for a thread?
However:
sounds like you are outgrowing the Assistant API.
Consider maintaining your own local record of all messages and use the Chat Completions API instead.