Can we just declare the `keyPair` and `fingerprint` variables inside this `filter` method (not as a class member), so we can make this singleton class immutable? This should allow you to remove this synchronization and will considerably simplify this.