started work on a more thread safe local cache

author: nhhughes