Seed PRNG in main.
Cube attack speed optimizations.

* Prepare encryption key for the cipher, use it in encryption (key schedule amortized).
* Fixed cube attack - only on plaintexts.