(testing) optimize singleton pattern for speed