Text this: Optimization of return value and handling cost