On Optimizing Traffic Distribution for Clusters of Network Intrusion Detection and Prevention Systems