Optimization techniques for bulk purchasing of target flow switches