cache simulation