Added simple cache implementation