Here we convert $w/$dw to ($dw ascending) 1-dim-array's (because 1-dim access ist faster then 2-dim access).
Additional shifting the last 4 elements to the top of the arrays.

This way we can access $w/$dw without any expensive ++$counter var but using fast hardcoded indexnumbers in _encrypt/_decryptBlock() ... even in the last round :-)