Improving shell script performance
You may be able to improve shell script performance by setting the _BPX_SPAWN_SCRIPT environment variable to a value of YES. However, when _BPX_SPAWN_SCRIPT=YES, the behavior will not conform completely to the XPG4 Commands & Utilities specification.
See Improving the performance of shell scripts for more information.