I do something similar and I have the best results of not having a history at all, but setting the context new with every invokation.