Split serialization from Indexcreation and do not include empty strings