Cache size determined by memory instead of number of items