Split the larger input into smaller chunks. Prevents the nif from blocking schedulers