Post-17th century use of matchlocks in Spanish and Portuguese Americas?

May 2019
Given that most major European armies were making the switch to standardised flintlocks by the early 18th century, I'm curious to know how late matchlock firearms were in use within the vast portion of North and South America controlled by Spain and Portugal. Since these were colonies, and some of the outposts/settlements were a good ways away from central arsenals, I had a hunch the older matchlocks might have remained in second-line use for a bit later...?

I'd also be curious to know about post-17th century civilian use of matchlock firearms in these colonies, if there's info available on that.