Reduce Memory Usage for large ledgers