Class for efficient URL shortener service