Moving cache model out from resource folder