cleanup & remove shared vars

We do not need pyramid cache, see
https://github.com/Itseez/opencv/blob/master/modules/video/src/compat_video.cpp#L335

tested on opencv 2.4.9
fixes #47