That avoids one of the benefits of having a text based format; I would use TER and convert to DER (where TER is a text format and DER is a binary format, and which is what I do with some of my programs).
(Text formats do have some benefits, but binary formats have different benefits.)