- replaced List of Attributes and grantedusers with sets
  - maxed out the performance in the updatelayer method