Reduce the nr of allocations when parsing types.db