[NUCCORE-1209] Adapted patch (updating coding conventions) from Kaarel
Kann for caching constructor of SingleFieldId. Added TODO for other
caching.