v1.0.6 move keystretching + pdf generation to background