added beforeWrite and afterRead callbacks for DeserailizedCharacteristicProfile