BUG fix which ensures cache occupancy is not overwritten