Optimization + cache system