Foreign employment is already a factor that could cause you to lose your green card (together with other facts such as whether you have a house or apartment in the US, whether you have a spouse and/or minor children in the US, the length of your foreign employment, etc.).
If you want to minimize the risk of losing your green card for working abroad, get the reentry permit and DON'T file form 2555 for your taxes. Use other methods to reduce or eliminate the US taxation of your non-US income, such as the foreign tax credit I mentioned above, or the tax treaty (if it exists) between the US and the country you're working in.