Everyone wants to have the feeling of job security because it is no fun when one is job hunting. To lockdown that position you want so badly, you need to be the kind of employee that your leader or boss is so crazy about. You need to be a valuable team member as well.
For this to happen, you have to be more than simply good at your job; you must be exceptional. This exceptionality will also boost your career.