Big speedup for JSSC implementation