Speed up rubygem's Kernel.require

This is the implementation of some ideas for the speed.
Without changing the existing algorithm, it realized the speed mainly by taking advantage of the cache.

In case of executing `Kernel.require` about 60 gems that in my test environment, approximately 25% of the speed has been achieved by these changes.