MCacheExtension: modified LRU replacement of method cache using shift registers