Optimization of pointer kind of function arguments