SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '8b31f442599b880844dec4c3148c000a292c335ca1b05dba48f740730f4fb68f' 
  AND token = 'UB9nSwFys0o8azuRq50lY/YXW9t147DLx270Y6kiKmg=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00039

JSON explain

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