Performance-Sensitive Potential Functions for Efficient Flow of Connected and Automated Vehicles