Specify hidden visibility for release build due to performance regression