benchmark: added crypto_stream and cleaned up duplicated code