added cache for linear layer. added cache sources. bugfixe in copy of sboxes.