Sensitivity relations and regularity of solutions of HJB equations arising in optimal control