slightly improved scrypt kernel

Kernel works with LG of 2, 4 and 8 + small performance improvement