Preprocessing keys for reductions
Added -s option. Improved GROUP BY performance.