monitor: Various refactorings

- Field visibility

- Final fields

- Expensive string concatenations

- Other minor stuff