cache initialization code