memory consumption for attributes frequency values calculation is fixed