UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'e133lHzDJAXLcgGtT14l7un2WrLUY9Jm4oBQE/0WXT0=' 
WHERE 
  key_id = 'e972642607998dfd9a8b4dfb00e75fad682f1a2546ab879f2cd3987dfd6e147a' 
  AND (
    token = 'e133lHzDJAXLcgGtT14l7un2WrLUY9Jm4oBQE/0WXT0=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00034