Optimize the header dependencies