Use a UnaryOperator.identity() instead of applying the function manually.