HPCC-12486 Optimize binding module functions

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
yes - and probably because this function had some code added and then removed again, but I kept this for clarity.