We present an optimization of the thickness of the magnetic layers that serve to record the information of the daily need in order to minimize the useful electrical energy. The study provides details on the energy activation and distribution of the energy barriers in the samples of thickness . We find that distribution of the energy barriers , its distribution width , the real activation field are lowest in the sample of thickness , hence this sample allows to use less electrical energy for information recording.