Holy Indiana Jones!

Sacks of diamonds? Check. Tens of billions worth of buried treasure? Check. Secret vaults beneath temple floors? Check. An amazing story to rival the movies? You bet ... and it's absolutely real.

A fierce debate is brewing about what to do with the tens of billions of dollars worth of treasures just discovered in a popular 16th-century Hindu temple in southern India -- even as the trove of newly revealed riches continues growing.

Inside the Sree Padmanabhaswamy Temple, investigators were counting the staggering hoard of gold coins and statues of gods and goddesses studded with diamonds and other precious stones. Outside, small groups of armed policemen patrolled the temple grounds in the heart of the Kerala state capital, Trivandrum.

The unforeseen riches instantly turned the temple into one of India's wealthiest religious institutions and have sparked a debate on what to do with the treasure. An initial estimate, when the inventory began, put the trove value at $22 billion. But given that the work is ongoing and so many items are centuries-old antiques, that estimate is likely very low.

Metal detectors were hurriedly installed at temple entrances after six days of searches revealed the treasure trove of artifacts, statues and temple ornaments made of gold and embellished with jewels.

The valuables were donated to the temple by devotees over hundreds of years, and India's erstwhile royal family has been the custodian of the treasures.

The secret vaults were opened and the treasures inventoried after a lawyer went to court with doubts about temple security. Five vaults have been opened so far, and a sixth was still yet to be inventoried.

Politicians, religious leaders and historians have made a host of suggestions.

Kerala's top elected leader, Chief Minister Oommen Chandy, said the wealth would remain with the temple and the state government would assure its safety.

"The treasures are the property of the temple. We will ensure the utmost security for the temple and its wealth," Chandy told reporters Tuesday.

Many others in the state feel the enormous stash should be used to pay for poverty alleviation.

"The wealth should be used in public interest," said V.R. Krishna Iyer, a retired Supreme Court judge. "The treasure should be handed over to a national trust and spent for the welfare of the poor."

Others oppose any move that will give the government control over the billions.

"There is an opinion that it should be handed over to the government for developmental purposes. I am aghast at this suggestion," said Prof. K.N. Panikkar, a renowned historian, who also hails from Kerala.

Panikkar said the treasures were Kerala's legacy and should be preserved in a museum.

"Many of the objects may have antique value while others may have religious importance," he told reporters. "These should be preserved in a museum with modern security arrangements."

Kerala is a relatively prosperous region, which gained international acclaim as the first state in India to obtain 100 percent literacy. But it lags in industrial growth, forcing hundreds of thousands of its educated youth to go abroad in search of employment.

The Supreme Court ordered the inspection of the vaults at the temple, which is controlled by the royal family of the former kingdom of Travancore, after a lawyer petitioned for the state government to take over the temple, citing inadequate security.

The case was filed by a local lawyer, T.P. Sundararajan, but was not available for comment.

The current head of the royal family, Uthradam Thirunal Marthanda Varma, has refused to comment on the treasures, but petitioned in court against the inventory.

The Associated Press contributed to this report.