UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = '75fCjky1Eapq/XtBaY9kEm0eJu/q2JOZr3+ztOR1Rno=' 
WHERE 
  key_id = '3bb7c4e2c3a8583f4defab1f1a5d2118b08744e357b9781cdf4a02f2e0f930a7' 
  AND (
    token = '75fCjky1Eapq/XtBaY9kEm0eJu/q2JOZr3+ztOR1Rno=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00043