(test) optimize singleton pattern for speed