SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '07fe40a5709eecd69c9843073a27066395676d4213a07bb04f80f851efa177a7' 
  AND token = 'K/sgY4ZVikB5ahg2CiA3///K9MHvBnyjDmsh4hOufYo=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00048

JSON explain

{
  "query_block": {
    "select_id": 1,
    "message": "no matching row in const table"
  }
}