optimized use of indexeddb handle?