FBXExportApplyConstantKeyReducer -v [true|false];
FBXExportApplyConstantKeyReducer-q;
This is the script equivalent of the Constant key reducer for more information.
Filters FBX animation FCurves through a Constant Key Reducer. This eliminates constant keys on a FCurve and helps to reduce the size of resampled FCurves, especially Scale.