Only compute entity flags once and at the end of entity compilation