Optimised the performance of resolver for certain Gemfiles