Allowing instrumentation to occur in a worker thread and caching results.