added some code to make l2 Caching optimal. not everybody wants to use ssd's as cache!