Simplify the loadOfflineData method.