Optimize DexUseManagerLocal.findOwningPackage - Step 1.

This CLs contains no semantic change. Optimizations are:

1. Using UnfilteredSnapshot to defer the shouldFilterApplication check
2. Check if the dex is secondary dex of the loading package before
   checking if it's primary dex of other packages
3. Adding an LRU cache for recent packages

Bug: 328673771
Test: atest ArtServiceTests
Change-Id: I7974b0240a81e6a62ad15a6cb5825a6278ce05d1
4 files changed