This snippet is expensive in [`neptune-core`](https://github.com/Neptune-Crypto/neptune-core)'s `removal_record_integrity` program.