A solution which may work for you case:
Divide your script into 2: Once you finish the 'init' script,
display the message that real-data is on the way and it can take some time. Changing algorithm to 'get' data faster would always be a better way but if it really takes time, then you require patient audience for your application.