Introduce MemoryPolicy API

Part 1 of #438 
nit: could be private