Scientists have painstakingly mapped the DNA of human beings, corn, turkeys – and now chocolate.

A group of researchers led by McLean, Va., candy company Mars is nearly done sequencing the genome of the cacao tree, which produces the seeds used to make cocoa. The data will speed up the process for creating a stronger tree that is more resistant to disease and easier to grow for millions of farmers.

And a better tree, they hope, means more chocolate for everyone for years to come.

Rather than keep the delicious secrets to itself, the company has decided to share the information with the world.

“The information is so rich and so accurate we felt there was no reason to hold back,” said Howard-Yana Shapiro, global staff officer of plant science and research at Mars.

The goal of the genome project is to improve the traditional method of breeding trees, a trial-and-error process in which researchers try to isolate the sweetest traits and replicate them. That can take as long as 15 years to complete.

With a map of the cacao tree’s genetic makeup, scientists could cut that process down to two or three years. For instance, they could extract the DNA of a young tree and see whether it has the right genes for resisting diseases instead of waiting years for the tree mature.

Will the new information result in better-tasting chocolate?

Perhaps, Shapiro said. He said some discerning eaters have complained that the quality of cocoa has fallen in recent years, but no one knows whether that is due to soil, weather or genetics.

At least one of the keys to flavor is the fatty acid content of the cocoa. “Now finally, we have insight on how to stabilize it and raise it over time,” Shapiro said.

The world’s cocoa supply is grown mostly by small farmers because the process is laborious.

It begins with picking a pod off a cacao tree. The farmer then splits open the pod and scrapes the seeds out. Then the beans are fermented for a number of days, which is when they get their tasty chocolate flavor. Last, the beans have to be dried.

The cacao plant is especially hard to grow because it is highly vulnerable to pests and disease.

More than 70 percent of the world’s cocoa supply comes from West Africa.

Brazil used to be a top producer of cacao, until a fungus struck the crop in the late 1980s.

“It was a wake-up call,” Shapiro said. “Imagine what would happen if something hit Africa.”

The United States does not produce much cocoa. But because domestic companies such as Mars and Hershey’s rely so much on the ingredient, the U.S. Department of Agriculture has been trying to breed a better cacao tree since 1999.