Avoid unnecessary Function object creation