DENVER (AP)  Detectives in Denver were on the hunt for an increasingly brazen shooter.

A burglar fired through a woman’s dining room window when she threatened to call police. Ten minutes later and a mile away, someone broke into another home and shot a Bernese Mountain Dog.

Officers scooped up the spent shell casings and wondered where he would strike next.

Their break came when a witness said he was fired upon in a street fight two days later. Police gathered six more casings that were quickly entered into a national ballistics database and matched all three crimes. The evidence helped put Anthony Dennis in jail and keep him there.

In many U.S. police departments, that evidence might have been shelved in an overworked crime lab, where analysts would only run it through the database to prepare a case for trial.

But authorities in Denver are leading a national trend to put ballistics evidence into the hands of investigators much more quickly  before leads dry up and suspects disappear.

“Police are beginning to understand that if you don’t quickly respond and address gun violence it can spread over space, and it can escalate much like a measles outbreak,” said Daniel Webster, director of the Johns Hopkins Center for Gun Policy and Research, which is studying whether these efforts create sustained reductions in gun violence.

Matched shell casings have helped lead to at least 35 arrests in more than 50 shootings in the two years since Denver began operating its Crime Gun Intelligence Center. At least 13 other suspects were charged with federal gun crimes, and five more had their parole revoked, according to the U.S. Bureau of Alcohol, Tobacco, Firearms and Explosives.

The goal is to stop “active shooters,” people who “have already proven they have no qualms about pulling the trigger multiple times,” said Jeff Russell, supervisory special agent in the Denver ATF office. “The urgency is there to stop that person before they commit the next shooting.”

In Denver, Chicago, Milwaukee, New Orleans and other cities, shell casings are now loaded into the National Integrated Ballistic Information Network within days of a crime. A machine takes images of the unique, microscopic markings at the base of each casing. Computer software then produces potential matches, and detectives and ATF agents study the linked cases for other similarities, such as suspect or vehicle descriptions.

“You’ve got to be timely,” said Greggory LaBerge, who directs the Denver Police crime lab. “If even a week or two goes by, you may lose the advantage of having those connections.”

Russell and LaBerge agreed to move two ATF investigators into Denver’s crime lab to enter recovered shells into the database, using $150,000 in ATF equipment. Baltimore, Seattle, Los Angeles and other cities are now developing similar programs.

Agencies using the national database have entered nearly 2.4 million cartridge cases recovered from crime scenes, producing more than 67,000 “hits” as of February.

But there are as many as 400 million guns in circulation in the United States, and by law, the federal database was constrained from the start to include only ballistics evidence that comes from crimes. By law, test-fired shells of newly manufactured guns cannot be entered before they are sold.

Still, with every new entry of a shell left behind by a criminal, the database becomes more robust. And when officers gather shell casings from shooting scenes as often as they can, they increase the likelihood of finding matches that provide clues to a shooter’s identity.

“It’s like the computer you have at home. If you feed it a little, it will do a little work for you. If you don’t feed it at all, it’s not going to do any work for you,” said Pete Gagliardi, a former ATF agent who is now senior vice president of Forensic Technology Inc., a private company that studies ballistics evidence.

Unlike with DNA or fingerprints that link people to crimes, this system catalogues the distinct characteristics of a firearm, not the person who used it. And the software only suggests potential hits, leaving it to analysts to verify any matches.

Denver’s early results are mixed, but promising, said Webster. The homicide rate dropped for at least five months in places where police made arrests as a result of the program, he said, although he wouldn’t provide details, since the study hasn’t been published.

Even so, it can take some convincing to put crime lab ballistics machines at the service of detectives, said George Lauder, a resident agent in charge of the ATF in Milwaukee. But soon after that city started using the technology in the immediate aftermath of shootings, investigators discovered a pattern of armed robberies based on their locations and times, he said.

“We’ve been successful in homicides where we’ve been able to identify a lead within 45 minutes,” said Lauder’s partner, Alex Kopeck. “In the past, it could have taken us months and sometimes never to identify these leads.”

New Orleans authorities credit ballistics analysis by their Multi-Agency Gang Unit for helping them solve a 2013 gang-related shooting at a Mother’s Day parade that wounded 19 people, said Phillip Durham, special agent in charge of the New Orleans ATF office.

“Our murder rate is the lowest it has been in 30 years,” he said. “Most of the credit is going to the MAG Unit. We’re targeting the shooters.”