Serializer as singleton class