Implemented optimization to defeatCaches