optimize frequent method calls