Fixed MAJOR performance regression - stackTraces were being taken even when recording was turned off