open the file and only read what you need to, if your using code from someone else most likely its loading the whole file and then showing you the tags