I would not suggest this is a way around it. Airlines provide information to the US CBP even on itineraries which do not touch the US. Basically the US will know you went to Cuba whether you like it or not, they are not relying on searching for stamps in your passport.