reduce memory allocations in aes block cipher, optimize performance test