improved caching for rootps_whitening
(#352)