Data and Distribution Privacy Under Function Recoverability