Gas retention and release from nuclear legacy waste