How about Israel make the same deal?
If you ever want your Palestinian Hamas prisoners released after their sentences are served, release the hostages now. Otherwise, if you harm them we will execute our Hamas prisoners rather than release them. You will never see them again except in Hell. Most likely you will be there to greet them when they arrive.
They don’t value their own people’s lives.
Except for that, it was an idea.