Cooking garlic and onions in vegetable oil at high temperatures can generate trans-fatty acids (TFA) and can prove to be detrimental to heart health, claims a study by Japanese researchers.