Optimization cache and log