Introduce MemoryPolicy API

Part 1 of #438 
nit: empty javadoc line before this guy