As many as 3,000 San Francisco arrests conducted by officers implicated in a widening text-messaging scandal are being reviewed to see if police bias led to prosecutions, the city's top prosecutor said.

"We cannot afford to look the other way," George Gascón, the San Francisco district attorney, said. He decried the text messages, discovered in a corruption probe, as "horrendous." Some of the messages said "we celebrate whiteness" and that African-American women "should be spayed."

The prosecutor said he has identified as many as 3,000 arrests and criminal cases involving 14 officers implicated in the text-messaging fiasco. At least eight cases have been dismissed already.

Gascón has created a task force of sorts to examine the messaging scandal and others, including sheriff's deputies allegedly gambling on inmates fighting each other in jail, and crime-lab employees allegedly breaching standards surrounding the analysis of DNA. Hundreds of convictions in connection to the crime lab could be compromised, he said.

The San Francisco Police Department said in a statement that “We have cooperated with the district attorney and handed them the requested documents so they could conduct their audit. The DA has to review the cases and it's their responsibility to determine if there is any bias in those cases."

The department is moving to fire at least seven of the officers involved and at least one has resigned.

The text messages, meanwhile, came to light in March during a federal corruption case against a former sergeant, Ian Furminger, who sent and received many of the messages at issue. Furminger was convicted and sentenced to 41 months of prison.

Furminger is out on bail while his case is on appeal.

"If I offended anybody, I'm sorry. I'm truly, truly sorry," he told CNN. "However, it's banter amongst friends."