Making Shock cache thread safe.