I guess in theory there should not be any problem creating a submarine with a smoother speed of sound transition thus creating a more refractive instead of reflective surface.
But I'm sceptical if this will work for passive detection (though for diesel-electric subs in littoral environments this would be very sweet indeed

)