UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'zEtzM6gwVEEjR+UOS3mn68CJKUOXe8m9rdXzf8911vc=' 
WHERE 
  key_id = '14bb811af1eb2b5680ebf85e50e65b20ebef8b2e113f0ddf3d9798e84ce568e8' 
  AND (
    token = 'zEtzM6gwVEEjR+UOS3mn68CJKUOXe8m9rdXzf8911vc=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00033