Spain has an army of lawyers who claim to be above salavge law when it comes to treasure ships. I knew one of the lawyers who worked out of the DC embassy to lay claim to all Spanish Treasure ships.
For Spain to have it both ways would put them in a precarious position.