A workaround to pre-compile internal methods