Fixed caching problem with trace hash