Optimized passing function parameters