Add local/global context getters and setters