Compressed static functions with applications