#4 - static cached instances map

Implementation for #4