Switch to static writeTo/readFrom in order to remove empty constructor