Add function to cache the acl