Script Preloader?

Hi all,

I have a file with an If else script with 1800 If else variables.

It runs VERY slow when you are searching for one of the variables that are at the bottom of the script.

I am wondering if a preloader could be made for this or if anyone knows a way to speed this up.

Thanks!