Fix bug 1941 - Deleting of flows very slow with large number of flows