fix acl cache: correctly serialize resource