Move memory manipulation functions to LFP bindings