[PD] Store data in memory more efficiently than in arrays