Store resource name -> key id within node attributes and file