Optimizing client dependencies