Reduce memory consumption