Use java serialization to store state