Implementing implied chache memory limitation

A bit rude way of doing it, but it at least limits the mem usage