External dependency optimization