Made asynchronous encryption only start new thread on demand