giant cleanup - cache no longer required. sort->insertionsort