ENH: Reduce memory consumption