Moved code from PhiCache.hpp to PhiCache.cpp