mining optimizations