Use buffers to store the script source instead of string to reduce memory usage.