Important crypto improvement

Private keys are now never on the stack and won't be swapped to disk.