pub fn binary_search_with_discriminator( records: &[IndexRecord], entry_key: &[u8; 32], discriminator: u16, ) -> Option<usize>
Search for a record with the given key and specific discriminator.