Rising RAM and memory prices have significantly eroded profit margins for budget smartphone makers.