Flash as a viewer and searcher for XML data

i build a flash aplication as a viewer and searcher for my XML data.
my xml data contains more than 30thousand datas.

my flash app can view all 30thousand data.
but when it comes to searching one data inside it. it came a very long loading.
then the system hang for a momment, then cannot complete the searching coz the applicaton eror.
i wonder, is there any way to optimizing search query in flash 8 (action script 2.0), maybe if the flash
application search the node one by one x 30000 times might be so long.

please help me for my case.
thank you very much