Compute data upon save