Improve Team prefix performance

This change vastly improves performance for faction team prefix update
operations.