Enhancement: Optimize prune memory usage

The prune command requires large amounts of memory to determine what to keep and what to remove. That step has been optimized to use up to 30% less memory.

https://github.com/restic/restic/pull/3899
