SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '1e197e5983cf85f29f862733a15b63e5a30f691a002a008f3c36f0fa7cd3209f' 
  AND token = '8ZPYQqHdcXu6fbZp5OZ2RpbvYsyT0Tvz8xdEeZl4iPE=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00031

JSON explain

{
  "query_block": {
    "select_id": 1,
    "message": "no matching row in const table"
  }
}