Fixed some issues with to many versions being created etc.
New version
Implemented optimization to defeatCaches
Fixed bug in defeat cache optimization