LPS-32629 Clear up ThreadLocal caches after each batch processing