In this day and age, it is not possible to separate national security from energy. Assured energy is an integral part of national security. National security is not the same as what it was 50 years ago, i.e., ability to win in an all out war. Threats to national security these days come in the form of low intensity insurgencies (aided by enemies); threat to water, energy, infrastructure; exploiting societal fault lines such as religion, caste, language, etc. to create internal instability, etc. So, it is not possible to treat energy separate from natinal security.
Also, Indians need to grow up from their cold war mindset of painting US as evil (like this opinion above suggests). All mature and advanced societies achieve their prosperity by identifying their national interests and pursuing them single mindedly. That's what US does; that's what China does; that's why UK aligns itself with US slavishly; there is no shame in pursuing your national interests. We need to grow up and start pursuing our national interests unabashedly. If aligning with US in certain aspects is in our interests (in some aspects, it is) then we must do so, irrespective of what we think about the correctness of US involvement all over the world.