Decode file into new scratch buffer instead of inline