Similar Items: Analytic Framework for Estimating Memory Cost