Introduce MemoryPolicy API

Part 1 of #438 
The original behaviour would skip writing to the memory cache as well, this one should probably be kept the same.

```java
return memoryPolicy(NO_CACHE, NO_STORE);
```