Remove range matching for permissions
Move cache clearing into PermissionEntity to reduce code duplication