added cache for correlation and regression :)