Org-mode already can save context info as properties. See the variable org-archive-save-context-info.