The BAPI will certainly need more time if you tell them to access each material master view.
Not sure if it is only a data issue, but for sure the batch management indicator is not active in the existing material master. You should probably react on this in your program and only execute the BAPI_BATCH_CREATE if you found a batch management indicator