---
title: How a 1-Day Initiative Helped Us Cut 1200$ Cost and Improve Performance
description: Discover how a one-day initiative at Optiblack led to a $1,200 cost reduction and improved app performance through innovative in-house country detection.
image: https://optiblack.com/hubfs/Optiblack%20Vishal%20Rewari%20Product%20Analytics%20(7)-2.png
---

OPTIBLACK

- [Services](https://optiblack.com/services)
- [Customers](https://optiblack.com/customers)

[Book a strategy call](https://optiblack.com/book-a-call)

- [Services](https://optiblack.com/services)
- [Customers](https://optiblack.com/customers)

[Book a strategy call](https://optiblack.com/book-a-call)

[Case Studies](https://optiblack.com/insights/tag/case-studies) [Information](https://optiblack.com/insights/tag/information) Apr 28, 2026, 3:48:04 PM · 2 min read

# How a 1-Day Initiative Helped Us Cut 1200$ Cost and Improve Performance

Nandini Sharma

Optiblack

![optiblack](https://optiblack.com/hubfs/Optiblack%20Vishal%20Rewari%20Product%20Analytics%20(7)-2.png)

At Optiblack, some of the most impactful improvements don’t come from client requirements—they come from internal ownership and curiosity. This was one such initiative.

While working on **multiple** apps for a client, our team noticed we were relying on IPAPI for country detection. It was working fine—but came with recurring costs (~$20/month), added latency, and an external dependency we didn’t fully control.

So we asked: *Can we build a better, leaner solution ourselves?*

#### **The Effort: 1 Day Research + 6 Hours Build**

This wasn’t a client requirement—it was a proactive engineering decision.

- **Day 1:** Researching alternatives (GPS, device locale, offline datasets)
- **Next 6 hours:** Building and integrating a local detection system across both apps

What started as a quick experiment turned into a production-ready improvement.

#### **The Real Impact: $40 vs $1,200**

While $20/month may seem small, over time it adds up:

- **$20/month → $240/year**
- Over a **5-year horizon → $1,200 total cost**

By replacing this dependency, we effectively turned a **$1,200 recurring expense into a one-time $40 investment**.

#### **The Solution: Local-First Country Detection**

We replaced the API with a **layered detection approach**:

**1. GPS-Based Detection (Primary)**We use device location and reverse geocoding to determine the most accurate country ISO code when permissions are available.

**2. Device Locale (Fallback)**If location access is denied, we fallback to the device’s regional settings:

String countryISO = PlatformDispatcher.instance.locale.countryCode?.toUpperCase() ?? 'US';

 

**3. Default Fallback**If both fail, we default to **“US”**, ensuring the system always returns a valid country.

#### **Local Data = Zero API Calls**

To make this system fully independent, we bundled a static JSON file (country\_codes.json) inside the app. It contains country metadata like name, ISO code, dial code, and flag:

{"name": "United States", "code": "US", "dial\_code": "+1", "flag": "🇺🇸"}

 

This allows instant mapping from ISO code to full country details—**no network calls, no latency, no failures**.

 

![undefined-Apr-28-2026-10-08-05-0632-AM](https://optiblack.com/hs-fs/hubfs/undefined-Apr-28-2026-10-08-05-0632-AM.png?width=1149&height=1369&name=undefined-Apr-28-2026-10-08-05-0632-AM.png)

 

#### **Platform Considerations**

- **Android:** Uses geolocation and geocoding with proper permission handling and smooth fallback flows
- **iOS:** Relies more on device Language & Region settings when location access is restricted, ensuring privacy compliance

#### **The Outcome**

A small initiative led to meaningful impact:

- Saved ~$20/month in API costs
- Improved performance with zero API latency
- Enabled offline functionality
- Reduced dependency on third-party services

#### **Why This Matters**

This wasn’t about shipping a feature—it was about **thinking beyond requirements**. Identifying inefficiencies, taking initiative, and solving them quickly.

At Optiblack, we believe great engineering isn’t just about building new things—it’s about **continuously optimizing what already exists**.

Nandini Sharma

[#Case Studies](https://optiblack.com/insights/tag/case-studies) [#Information](https://optiblack.com/insights/tag/information)

/ Keep reading

## More from Optiblack

[![Real-Time Memory Monitoring for AI Systems](https://optiblack.com/hubfs/Optiblack%20Vishal%20Rewari%20Product%20Analytics%20(22)-2.png) Information Real-Time Memory Monitoring for AI Systems](https://optiblack.com/insights/real-time-memory-monitoring-for-ai-systems) [![Landmark Group Partners with Optiblack to Drive Digital Transformation Across Retail Operations](https://optiblack.com/hubfs/Optiblack%20Vishal%20Rewari%20Product%20Analytics%20(21)-2.png) Case Studies Landmark Group Partners with Optiblack to Drive Digital Transformation Across Retail Operations](https://optiblack.com/insights/landmark-group-partners-with-optiblack-to-drive-digital-transformation-across-retail-operations) [![Data Storage Cost Estimator Made Simple](https://optiblack.com/hubfs/Optiblack%20Vishal%20Rewari%20Product%20Analytics%20(20)-2.png) Information Data Storage Cost Estimator Made Simple](https://optiblack.com/insights/data-storage-cost-estimator-simple)

/ 15-minute exploration call

## Turn these insights into revenue.

We'll go through your CRM, product, and analytics data together and show you exactly where growth is leaking. No setup. No dashboards. Just signal.

[Book a strategy call →](https://optiblack.com/book-a-call)

[OPTIBLACK](https://optiblack.com/)

 US: 1309 Coffeen Ave, Suite 1200, Sheridan, WY 82801 · +1 682 297 2970 — India: 297 Designs, 74 SBK Society, Paldi, Ahmedabad 380007 · +91 9819394297

 Services

[Data services](https://optiblack.com/services) [CRM services](https://optiblack.com/services) [AI services](https://optiblack.com/services) [Book a call](https://optiblack.com/services)

 Company

[Customers](https://optiblack.com/customers) [About Us](https://optiblack.com/about-us) [Insights](https://optiblack.com/insights)

 © 2026 Optiblack · 2× Mixpanel Partner of the Year · vishal@optiblack.com

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Nandini Sharma",
    "url" : "https://optiblack.com/insights/author/nandini-sharma"
  },
  "dateModified" : "2026-04-28T10:18:04.588Z",
  "datePublished" : "2026-04-28T10:18:04.000Z",
  "headline" : "How a 1-Day Initiative Helped Us Cut 1200$ Cost and Improve Performance",
  "image" : [ "https://optiblack.com/hubfs/Optiblack%20Vishal%20Rewari%20Product%20Analytics%20(7)-2.png" ],
  "mainEntityOfPage" : {
    "@id" : "https://optiblack.com/insights/how-a-1-day-initiative-helped-us-cut-1200-cost-and-improve-performance",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://optiblack.com/hubfs/Group%201234.png"
    },
    "name" : "Optiblack"
  }
}
```