A magnetic element having a ferromagnetic pinned layer, a ferromagnetic
free layer, a non-magnetic spacer layer therebetween, and a porous
non-electrically conducting current confinement layer between the free
layer and the pinned layer. The current confinement layer forms an
interface either between the free layer and the non-magnetic spacer layer
or the pinned layer and the non-magnetic spacer layer.