Many optimizations towards JPS