Is it possible to write a function which stays in the conventional memory?