Analytics framework for optimal smart meters data processing