If the data is already in memory, that would be faster. The config.yml could then have multiple .png added to the webpage for a single call to a script.