Storing magnetic fields in pre-collapse cores of massive stars