sdk: const correctness