tidying cache initialization functions