Pool system optimization