improve stack trace performance.