Replace hard coded numbers with mi_size table access. Change-Id: Ia5b8802de9f0128edf2c71542c703f317c7f61da