Reduce memory pressure with large indexes
Removed build warnings for shadowed types
Merge pull request #257 from thewacokid/master

Open indexes in shared mode to reduce memory usage