CRM-19557 Fix ACL caching function to not use inefficient query for view my contact