Encryption integration in background thread.