Optimize value gathering