I think there is still significant overhead on anonymous functions and it seems like `f` is not really needed.