Local cache and remote JSON request for iOS