[cleanup] Applied codestyle
[misc] Better caching of ontology terms