What variables directly affect the viability of loading and unloading a cargo plane securely and safely?

What variables directly affect the viability of loading and unloading a cargo plane securely and safely?