moved cipher setup out of main thread