lightrec: Add new memory init functions