The US-Turkish relationship was always an alliance between two secularist nations with secularist constitutions. Contemporary Turkey is ruled through a permanent power struggle between the Crypto-Islamist AKP (the Turkish branch of the Muslim Brotherhood) and the Dönmeh-led Derin Devlet (Turkish for ‘Deep State’). It may seem quite peculiar that a country with an Islamist dictator remains a member of NATO with US nuclear weapons stationed on its soil. However, this is entirely due to the influence of the Derin Devlet which values Turkey’s alliance with the West. The US alliance with Turkey is therefore effectively an alliance with the Derin Devlet.
This is not to deny that Erdogan and the AKP are powerful, they have muzzled the media and purged the military from officers belonging to religious minorities such as Alevis. It is entirely unclear who will ultimately prevail in the power struggle between the Derin Devlet and the AKP. Will Turkey become an Islamist state or will the Derin Devlet eventually orchestrate a military coup as in the old days in the 20th century, unseat the Muslim Brotherhood Turkish Crypto-Islamists from power and restore the old Kemalist order? An AKP coup against the Derin Devlet is unlikely considering the apparently decentralized nature of the Derin Devlet without any centralized point of power in the country.
Nevertheless, it is overly audacious for the US to maintain nuclear weapons on Turkish territory, considering that these could potentially be confiscated by the Erdogan regime at some point and overnight transform Turkey into a possessor of nuclear weapons.
However, the US government should always keep in mind that Turkey would hardly be an ally of the US and a member of North Atlantic Treaty Organization were it only up to the AKP and President Erdogan.