Remove unused attribute thread_cache