Disagree with the bolded. Bad behavior is occurring regardless of whether calls are "objectively" good or bad. If the call goes against the fan's team, then by the fan's definition, it was a bad call.
Doing a good job likely earns the respect of a large majority of coaches, the other officials and maybe even some players. It does nothing to affect people in the stands. Most do not understand that different rules apply to NFL, NCAA and Ohio high school football - and same is true for basketball.
A little yelling is one thing - but at most games the yelling is more akin to threats against the ref's personal safety. You could raise the fee to $1,000 per game - that might get a slightly improved referee base, but it would also attract those in it for the money. And it would not reduce the heat coming from the stands, and in fact would probably increase it.
I use to think that a little negativity at the ref by reasonable people, with no threats, just whining, was not a big thing. That thought has changed (and no, I do not officiate any longer, has been many years since I officiated basketball). The games I attend in person these days, I watch otherwise-respected business people who are community leaders get very loud and direct about officiating quality, loud enough for officials to hear. That type of criticism can generally be ignored by a seasoned official, but it gets to the rookie official (and we have/need more and more rookies), and worse/more importantly that behavior seems to embolden the yayhoos in the crowd to think that if community leader A can yell at an official, then yayhoo B can yell any obscenity and threat all they want. Some even look at it as entertaining the crowd. I know some of you may not perceive that at your home team's games - but imo it is at almost epidemic level. SM has made it acceptable to be a jerk and hide behind a keyboard - and it spills over into everyday life.
I know, then what's the answer? I don't think there is an answer, short of escorting 25 people out the gate every game. The bad behavior has become that pervasive, at every level at almost every game, and no matter the sport.