Another idea for fixing type performance