output-handler: Cache marshalled data so that it's read only once

Wastes cycles, and could race against the marshalling.