MongoDB Optimizations: Achieving 30x Improvement in p99 Query Performance and 40x in Average Query Speed