add basic optimalization for finding Permissions in PolicyFile