Improve efficiency of Factions checks