Cache costs in TaskCostTracker for ~10% performance improvement