Massive refactoring of network and caching operations.