Prevent duplicate keys in flow and block maps