faster contains_data