When Library tree is the first executed the times of your script are low.
This is consistent in every test i made. (is the same for the other bio script too)
the script that is executed first takes the impact.
We think that the long start ups are more related with the way SMP starts and not a problem with a specific script.
Maybe MordredKLB can gives you a more detailed answer. I'm only a user I have no idea of programing