PRAM: Place Recognition Anywhere Model for Efficient Visual Localization