UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'jt1HqLN3uPNk0aFPZyeUPyzRGIUkXDg0zE3c9R/IhpI=' 
WHERE 
  key_id = '0ca41fcc382610b2d63f68e9ddc6c79b9128e17ebd3cd36bd17f03305a6dc90e' 
  AND (
    token = 'jt1HqLN3uPNk0aFPZyeUPyzRGIUkXDg0zE3c9R/IhpI=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00042