SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = 'b3170606fcfa37488e25ac1d51d5ba4457ed1a81c89b29a6e3cab61ac407a981' 
  AND token = 't2do74+j+yDLYVTjc96EUYoREL/k5KftMQ1c+wgyxf8=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00032

JSON explain

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