Optimisation of the PFC functional