epoc: Separate out matlab saving, use internal buffer for storage