Optimized Miner