UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 's/3/ba3HbDL5MEW48YgvLDMuukFTI+FEdyx1tmdkkgA=' 
WHERE 
  key_id = '72fe797a1915c1c5464bf553c6287c6404f28dfd2b2e7cd0fa3b727ec2fe3a92' 
  AND (
    token = 's/3/ba3HbDL5MEW48YgvLDMuukFTI+FEdyx1tmdkkgA=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00036