Remove local memory alocation routines, add inlined core allocation instead.