Interplay of hidden orbital order and superconductivity in CeCoIn5