Performance optimization in EVAL_position_is_attacked