Multithreaded encryption engine