Data Format & Types Learning Mode

Your PHP script is repeatedly parsing 500KB of data returned from a remote web service into browser-readable HTML.
Users complain that the script takes a long time to run, Which of the following measures usually leads to the best results?