Aspose Java PDf library caching flush question

We currently have a threadpool that is processing large volumes of pdfs. The way the system is currently designed it calls MemoryCleaner.clear() when all threads are complete. We now have a situation were the run time and volume of pdfs being run can prevent that from being called which eventually leads to heap exhaustion. I see in the MemoryCleaner documentation there is a method call named clearCurrentThreadLocals().

If I change our code to call that whenever a thread completes its work will this accomplish the same thing or will I still need to flush the cache with the clear() method?