Exported SetKey, added ability to disable local cache.