keep srt/vtt in memory instead of writing a file to disk