No, we can't. http_types->data seems to point to readonly memory, ngx_http_types_slot has a to lower string and acts on the original data. This causes a crash when using the original data.
We might get away with allocating it once, but as I don't trust nginx to behave the same way in the future it is safest to allocate for each http_type add.