Add cache serialize/deserialize method calls in the application launching and closing sequence