Added some instrumentation for task history cache access.