Use functions implemented in cache.c