More efficient parsing of function payloads at the BSP code