SES-1728 : Revert change to getNamespace logic

Also enable caching for setNamespace to avoid redundant object storage