Made _cache be defined in __init__

It is much easier to implement cache purging this way.