Migrating to the Cloud while Maintaining Security and Network Performance