Move code from PhiCache.hpp to PhiCache.cpp