Do not restore stack too many times