pub fn collect_storage_log_queries_after_timestamp(
    all_log_queries: &[StorageLogQuery],
    from_timestamp: Timestamp,
) -> Vec<StorageLogQuery> {
    let from_timestamp = from_timestamp.glue_into();
    all_log_queries
        .iter()
        .rev()
        .take_while(|log_query| log_query.log_query.timestamp >= from_timestamp)
        .cloned()
        .collect::<Vec<StorageLogQuery>>()
        .into_iter()
        .rev()
        .collect()
}
Collects storage log queries where `log.log_query.timestamp >= from_timestamp`.
Denote `n` to be the number of such queries, then it works in O(n).
core/lib/multivm/src/versions/vm_m6/utils.rs