Removed unnecessary dynamic internal buffer in setURI method to reduce memory fragmentation