UPDATE 
  cscart_lock_keys 
SET 
  expiry_at = UNIX_TIMESTAMP(NOW()) + 30, 
  token = 'vqm0vfeaJQEg0Vu3cFEFMbnyuMInEPqCqNljmD0eD8o=' 
WHERE 
  key_id = 'c55b36f339857d5e6f04c3c033f42712a8dec97de104ffb7c7422bbe7dd33be4' 
  AND (
    token = 'vqm0vfeaJQEg0Vu3cFEFMbnyuMInEPqCqNljmD0eD8o=' 
    OR expiry_at <= UNIX_TIMESTAMP(NOW())
  )

Query time 0.00037