Attempt at speeding up Deity check.