SELECT 
  1 
FROM 
  cscart_lock_keys 
WHERE 
  key_id = '4c1878ac5c3fc7a424b1d2ea6d07d820316ba07561bef9bd976ed828f977e9ec' 
  AND token = 'Ex9Dgbd7ZH5d/t9W6+G8xrGk33Ej9dcg4FrbzajM6dI=' 
  AND expiry_at > UNIX_TIMESTAMP(NOW())

Query time 0.00030

JSON explain

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