fix for cache helper not being thread safe.